package itheima.com.zuoye.d05;

public abstract class sportsPersonnel {
//   姓名、性别、年龄
    private String name;
    private String sex;
    private int age;
//    吃饭(吃工作餐)
    public abstract void eat();

    public sportsPersonnel(String name, String sex, int age) {
        this.name = name;
        this.sex = sex;
        this.age = age;
    }
    public sportsPersonnel() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
